home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-09-25 | 2.7 KB | 106 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="4"
- "UIPATH"="System\Windows 95/98 Boot Options"
- "NAME"="Advanced Options"
- "VERSION"="1.32"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable "Boot old MS-DOS version" in menu"
- "TEXT 2"="Enable "Safe mode with network" in menu"
- "TEXT 3"="Enable logging"
- "TEXT 4"="Load system files at top of 640 K"
- '"TEXT 5"="Start in "Safe Mode" on next boot"
- "DESCRIPTION 1"="Some boot-options for Windows 98/95."
- "DESCRIPTION 2"="NOTE: Some of these items may not work on Windows 98 Second Edition."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"=" "
- "COMMENT 3"="Thanks to David Goodenough (dpg@ix.netcom.com) for the fix"
-
-
- 'Declaration of some constants
- sF="C:\MSDOS.SYS"
- sO="OPTIONS"
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- If GetWinVer=1 or GetWinVer=3 then
- Call FileSetAttribute(sf,"S-")
- Call FileSetAttribute(sf,"R-")
- Call FileSetAttribute(sf,"H-")
-
- 'Fix #1
- 'i=IniReadValue(sf,so,"MultiBoot")
-
- i=IniReadValue(sf,so,"BootMulti")
- if i=1 then SetUIElement 1,true
-
- i=IniReadValue(sf,so,"Network")
- if i=1 then SetUIElement 2,true
-
- i=IniReadValue(sf,so,"DisableLog") '//Undoc?!?!
- if i=0 or IsEmpty(i) then SetUIElement 3,true
-
- i=IniReadValue(sf,so,"LoadTop")
- if i=1 then SetUIElement 4,true
-
- 'i=IniReadValue(sf,so,"BootFailSafe") '//Undoc?!?!!
- 'if i=1 then SetUIElement 5,true
- else
- Disable
- end if
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call IniWriteValue(sf,so,"BootMulti",1)
- else
- Call IniWriteValue(sf,so,"BootMulti",0)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call IniWriteValue(sf,so,"Network",1)
- else
- Call IniWriteValue(sf,so,"Network",0)
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call IniWriteValue(sf,so,"DisableLog",0)
- else
- Call IniWriteValue(sf,so,"DisableLog",1)
- end if
-
- b=GetUIElement(4)
- if b=true then
- Call IniWriteValue(sf,so,"LoadTop",1)
- else
- Call IniWriteValue(sf,so,"LoadTop",0)
- end if
-
- 'b=GetUIElement(5)
- 'if b=true then
- ' Call IniWriteValue(sf,so,"BootFailSafe",1)
- 'else
- ' Call IniWriteValue(sf,so,"BootFailSafe",0)
- 'end if
-
-
- Call Restart()
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- Call FileSetAttribute("C:\MSDOS.SYS","S+")
- Call FileSetAttribute("C:\MSDOS.SYS","R+")
- Call FileSetAttribute("C:\MSDOS.SYS","H+")
- End Sub
-